import { http } from "@/utils/http";

export type commonResult<T> = {
    code: number;
    msg: string;
    result: T;
};

/** 2.14.1获取项目对应的应用系统 */
export const getApplicationSystemList = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/systematic/systematic/v2/menu', {
        params
    });
}
/** 2.14.2设备概览-数据概览 */
export const getDeviceOverview = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/systematic/systematic/v2/num', {
        params
    });
}
/** 2.14.3xx监测 */
export const getDeviceMonitor = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/systematic/systematic/v2/devices', {
        params
    });
}
/** 2.14.4各项目情况 */
export const getProjectSituation = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/systematic/systematic/v2/project', {
        params
    });
}
/** 2.14.5 监测中的设备数量 */
export const getDeviceMonitoring = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/systematic/systematic/v2/count', {
        params
    });
}
/** 2.14.6 告警统计 */
export const getAlarmStatistics = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/systematic/v2/alarm/statistic', {
        params
    });
}
/** 2.14.7根据系统id获取所有的子系统信息 */
export const getSubSystemList = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/systematic/systematic/v2/menu-sec', {
        params
    });
}